package com.zhongya.example.fragment.myview.study1

import android.graphics.drawable.Animatable
import androidx.vectordrawable.graphics.drawable.AnimatedVectorDrawableCompat
import com.zhongya.example.R
import com.zhongya.example.databinding.ExampleFragmentPathmeasureBinding
import com.zhongya666.library.base.fragment.BaseDbFragment

class PathMeasureFragment : BaseDbFragment<ExampleFragmentPathmeasureBinding>(R.layout.example_fragment_pathmeasure) {

    override fun initView() {


    }

    override fun createObserver() {
    }

    override fun lazyLoadData() {

        val animated = AnimatedVectorDrawableCompat.create(requireContext(),R.drawable.animated_vector_search)
        mDatabind.iv.setImageDrawable(animated)
        (mDatabind.iv.drawable as Animatable).start()
    }


}